all:test_novel mysql_demo test_author test_comment test_user test_login Server
mysql_demo:mysql_demo.cpp
	g++ $^ -o $@ -std=c++14 -I/usr/include/mysql-cppconn/jdbc/ -lmysqlcppconn

test_novel:test_novel.cpp
	g++ $^ -o $@ -std=c++14 -I/usr/include/mysql-cppconn/jdbc/ -I/usr/include/mysql-cppconn/ -lmysqlcppconn

test_author:test_author.cpp
	g++ $^ -o $@ -std=c++14 -I/usr/include/mysql-cppconn/jdbc/ -I/usr/include/mysql-cppconn/ -lmysqlcppconn

test_comment:test_comment.cpp
	g++ $^ -o $@ -std=c++14 -I/usr/include/mysql-cppconn/jdbc/ -I/usr/include/mysql-cppconn/ -lmysqlcppconn
test_user:test_user.cpp
	g++ $^ -o $@ -std=c++14 -I/usr/include/mysql-cppconn/jdbc/ -I/usr/include/mysql-cppconn/ -lmysqlcppconn
test_login:test_login.cpp
	g++ $^ -o $@ -std=c++14 -I/usr/include/mysql-cppconn/jdbc/ -I/usr/include/mysql-cppconn/ -lmysqlcppconn -lcrypto
Server:Server.cpp
	g++ $^ -o $@ -std=c++14 -I/usr/include/mysql-cppconn/jdbc/ -I/usr/include/mysql-cppconn/ -lmysqlcppconn -lcrypto -pthread -lctemplate
.PHONY:
clean:
	rm -rf mysql_demo test_novel test_author test_comment test_user test_login Server